package com.dingreading.cloud.subject.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 叮叮学院浏览记录
 */
@Data
@Table(value = "course_data_log")
public class CourseDataLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 添加时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    private String corpUid;

    private Long courseId;

    private String courseName;

    private String staffName;

    private String staffUid;

    private String storeName;

    private String storeUid;

    /**
     * 分类 1.课程视频 2.下载资料
     */
    private Integer type;

    private Long videoId;

    private String videoName;

}
